import request from '@/router/axios';
import {BASIC_PREFIX, EDUCATION_PREFIX} from "@/store/constant";

export const getMemberList = (current, size, params) => {
  return request({
    url: BASIC_PREFIX + '/course/member-list',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

export const getAttendanceList = (current, size, params) => {
  return request({
    url: EDUCATION_PREFIX + '/attendance/list',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

export const getHomeworkList = (current, size, params) => {
  return request({
    url: EDUCATION_PREFIX + '/homework/list',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}
